$.ajax({
	type: "get",
	url: "http://localhost:3000/cat",
	async: true,
	success: function(res) {
		res = JSON.parse(res)
		$(".con_title").html("")
		$.each(res, function(index, item) {
			var img = item.img
			var company = item.company
			var place = item.place
			var year = item.year
			var skill = item.skill
			var works = item.works
			var workplace = item.workplace
			var appointment = item.appointment
			var price = item.price
			var str = `
				<ul>
					<li>
						<div class="con_titleList">
							<div class="picture">
								<img src="${img}" >
							</div>
							<p>已签约</p>
							<span>刚刚活跃</span>
						</div>
						<div class="con_titletext">
							<p>${company}</p>
							<span>${place}</span><span>${year}</span>
							<p>技能:${skill}</p>
							<p>作品:${works}</p>
							<p><span class="work">可工作地点:${workplace}</span><span class="works">预约时间:${appointment}</span></p>
						</div>
						<div class="money">
							${price}<span>元/天</span>
							<p>立即预约</p>
						</div>
					</li>
				</ul>			
			`
			$(".con_title").append(str)		
		})

	}
})
